/**
  ******************************************************************************
  * @file    it.c 
  * @author  MCD Application Team
  * @brief   Main Interrupt Service Routines.
  *          This file provides template for all exceptions handler and 
  *          peripherals interrupt service routine.
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "bsp.h"
#include "bsp_cpu_it.h"

/** @addtogroup 
  * @{
  */
cpu_it_type cpu_it;

/**
  * @brief  This function handles USART0_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART1_IRQHandler(void)
{
	if (cpu_it.uart01)
		cpu_it.uart01();
}

/**
  * @brief  This function handles USART2_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART2_IRQHandler(void)
{
	if (cpu_it.uart02)
		cpu_it.uart02();
}


/**
  * @brief  This function handles USART3_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART3_IRQHandler(void)
{
	if (cpu_it.uart03)
		cpu_it.uart03();
}

/**
  * @brief  This function handles USART4_IRQHandler exception.
  * @param  None
  * @retval None
  */
void UART4_IRQHandler(void)
{
	if (cpu_it.uart04)
		cpu_it.uart04();
}


/**
  * @brief  This function handles USART5_IRQHandler exception.
  * @param  None
  * @retval None
  */
void UART5_IRQHandler(void)
{
	if (cpu_it.uart05)
		cpu_it.uart05();
}

/**
  * @brief  This function handles USART6_IRQHandler exception.
  * @param  None
  * @retval None
  */
void USART6_IRQHandler(void)
{
	if (cpu_it.uart06)
		cpu_it.uart06();
}

